home *** CD-ROM | disk | FTP | other *** search
- ###
- #
- # This script sets up your ALT and SHIFT ALT cursor keys to manipulate the
- # the secondary cursor, and also sets up some useful programs for the
- # mouse. And further, it programs the User menu to something useful.
- #
- ###
- #
- # Set the programs for the mouse.
- #
- # Just the left mouse button by itself:
- # Normally do nothing, but if there is a highlighted area, unhighlight it
- #
- mousesupport selectdown (~if not second exit; movecursor hide;)
- mousesupport selectup ()
- #
- # Shift left mouse button:
- # Send mouse moves to the host to get the cursor to the mouse position.
- #
- mousesupport shift selectdown (auto)
- mousesupport shift selectup ()
- #
- # Ctrl left mouse button:
- # Drag out an area. The area stays highlighted.
- #
- mousesupport ctrl selectdown (~movecursor %X %X %Y %Y; $1: if selectdown (movecursor %X mouse %Y mouse) else (goto $2); goto $1; $2: exit)
- mousesupport ctrl selectup ()
- #
- # Alt left mouse button:
- # If there is a highlighted area on the screen, this function
- # will unhighlight it, and paste it to the serial port.
- #
- mousesupport alt selectdown (~if not second exit; move clip; move hide; paste clip; paste auto)
- mousesupport alt selectup ()
- #
- # Shift ctrl left mouse button:
- # Click on a "word" on the display and it will be highlighted.
- #
- mousesupport shift ctrl selectdown (~rx ("move %X %Y"; "extr reviewlineatcursor"; "move %x %y"; s = " "vlt.reviewlineatcursor" "; "move "lastpos(" ",s,%X+1) pos(" ",s,%X+1)-1 %Y %Y;))
- mousesupport shift ctrl selectup ()
- #
- # Shift alt left mouse button:
- # Put up a window with the column and row of where the mouse was clicked.
- #
- mousesupport shift alt selectdown (~message (Column %X Row %Y))
- mousesupport shift alt selectup ()
- #
- # Ctrl alt left mouse button:
- # For you bixen: click on the conference/topic name on BIX, and it will resign
- # the topic for you.
- #
- mousesupport ctrl alt selectdown (~rx ("move %X %Y"; "extr reviewlineatcursor"; "move %x %y"; s = " "vlt.reviewlineatcursor" "; "paste string (resign "word(substr(s, lastpos(" ", s, %X+1)), 1)"*R)"; "paste auto"))
- mousesupport ctrl alt selectup ()
- #
- # Ctrl shift alt left mouse button:
- # If there is a highlighted area on the screen, this function
- # will unhighlight it, and paste it to the serial port. However, it
- # will first add sufficient spaces to arrive at the column you clicked on.
- #
- mousesupport ctrl shift alt selectdown (~if not second exit; move clip; move hide; rx ("paste string ("copies(" ", max(%X - %x, 1))"); paste auto; paste clip; paste auto"))
- mousesupport ctrl shift alt selectup ()
-
-
- #
- # ALT and SHIFT/ALT 0 on keypad:
- # Save what's currently highlighted to the clipboard.
- #
- function 81 (~movecursor clip; movecursor hide)
- function 105 (~movecursor clip; movecursor hide;)
- #
- # ALT and SHIFT/ALT Dot key on keypad:
- # Get rid of the currently highlighted cursor.
- #
- function 98 (~movecursor hide)
- function 122 (~movecursor hide)
- #
- # ALT and SHIFT/ALT Enter key on keypad
- # Take the clipboard contents and paste them to the serial port.
- #
- function 91 (~paste clip; paste edit auto;)
- function 115 (~paste clip; paste auto;)
- #
- # ALT cursor keys: up, down, right, left
- # Move the secondary cursor around.
- #
- function 99 (~movecursor rel 0 rel 0 rel -1 rel -1)
- function 100 (~movecursor rel 0 rel 0 rel 1 rel 1)
- function 101 (~movecursor rel 1 rel 1 rel 0 rel 0)
- function 102 (~movecursor rel -1 rel -1 rel 0 rel 0)
- #
- # SHIFT/ALT cursor keys: up, down, right, left
- # Make the secondary cursor bigger or smaller.
- #
- function 123 (~movecursor rel 0 rel 0 rel 0 rel -1)
- function 124 (~movecursor rel 0 rel 0 rel 0 rel 1)
- function 125 (~movecursor rel 0 rel 1 rel 0 rel 0)
- function 126 (~movecursor rel 0 rel -1 rel 0 rel 0)
- #
- # Program the menus to something useful
- #
- function 41 (~@VLTPhoneBook.vlt #VLT Phone Book)
- function 42 (~@2.04ScreenMode.vlt #ScreenMode for 2.04 Users)
- function 43 (~on (OK) continue; send (+++); delay 3; send (ATH*R) #Hayes Modem Hangup)
- function 44 (~send (*TMy Signature?*R) #Send Signature)
- function 45 (~@SendASCII.vlt #Send ASCII file)
- function 46 (~titlebar toggle #Toggle Screen Title Bar)
- function 47 (~@ManualMsg.scp #About the VLT Manual)
- function 48 (~schedule (delay 4; message); rx ("message (Available Memory: "storage()" bytes)") #Display Time - Date - Memory)
- function 49 (~@PrintScreen.vlt #Print Screen)
- function 50 (~mess (See the new Help item in the VLT menu!) #Menu Help)
-